package com.tx.java.chapter14.exercise14_6;

/**
 * 反射
 */
public class BaseClass {

    public String publicValue = "public";
    protected String protectedValue = "protected";
    String defaultValue = "default";

    private String name;


    public BaseClass(String name) {
        this.name = name;
        System.out.println("一个参数的构造方法");
    }

    public BaseClass() {
        System.out.println("无参构造方法");
    }


    public void publicMethod(){
        System.out.println("public 方法");
    }

    protected  void protectedMethod(){
        System.out.println("protected 方法");
    }

    private void privateMethod(){
        System.out.println("private 方法");
    }

    void defaultMethod(){
        System.out.println("default 方法");
    }
}